import request from '@/utils/request'

export function list() {
  return request({
    url: '/product/productCategory/list',
    method: 'get',
  })
}

export function deleteProductCategory(id) {
    return request({
      url: '/product/productCategory/delete',
      method: 'get',
      params: { id }
    })
  }

  export function findNameById(id) {
    return request({
      url: '/product/productCategory/findNameById',
      method: 'get',
      params: { id }
    })
  }
  export function addProductCategory(data) {
    return request({
      url: '/product/productCategory/addProductCategory',
      method: 'post',
      data
    })
  }

  export function updateProductCategory(data) {
    return request({
      url: '/product/productCategory/updateProductCategory',
      method: 'post',
      data
    })
  }